﻿using System;
using System.Numerics;

class TrailingZeros
{
    static void Main()
    {
        Console.WriteLine("Enter a number to chek how many" + 
            "trailing zeroes are there in the factorial of the number:");
        uint Number = uint.Parse(Console.ReadLine());
        int Counter = (int)Number / 5;
        BigInteger Factorial = 1;
        for (int i = 1; i <= Number; i++)
        {
            Factorial *= i;
        }
        Console.WriteLine("The factorial of the number is {0} and there are {1} trailing zeroes!", Factorial, Counter);
    }
}
